
# error out on errors
set -e

LIBS_DIR="$1"
SDK_DIR=$(pwd)
# link.h dir
INCLUDES_DIR=$(pwd)/../../liteos_m
LDSCRIPT=board.ld
CFLAGS="SDK_DIR=${SDK_DIR} INCLUDES_DIR=${INCLUDES_DIR} LDSCRIPT=${LDSCRIPT} LIBS_DIR=${LIBS_DIR}"

function main()
{
    # make ld script
    make ${CFLAGS} -f build/link.mk
}

main "$@"


